what happens when you buy a stock